define (require, exports, module) ->
  # 基础服务
  base_api = require 'mods/api/base_api'
  # 定义组件
  module.exports =

    # 获取登录用户信息
    getUserSession: () ->
      url = "/user/session"
      return base_api.getRequest url

    # 退出登录
    doLoginOut: () ->
      url = "/logout"
      return base_api.getRequest url